package com.example.siyun.service.impl.permissionsserviceimpl;

import com.example.siyun.mapper.permissionsmapper.BackmanageloginMapper;
import com.example.siyun.pojo.Loginlog;
import com.example.siyun.service.permissionsservice.BackmanageloginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
/**
 * @Auther: 全
 * @Date: 2022/9/26 09:33
 * @Description:权限管理模块后台管理人员登录
 */
@Service
public class BackmanageloginServiceImpl implements BackmanageloginService {
    @Autowired
    private BackmanageloginMapper backmanageloginMapper;
    /**
     * 获取后台管理人员的登录日志
     */
    @Transactional
    @Override
    public List<Loginlog> getBackManageLogin(Loginlog loginlog,int logintype,int isdel) {
        return backmanageloginMapper.getBackManageLogin(loginlog,logintype,isdel);
    }
    /**
     * 通过id删除后台登录人员信息
     * @param id 要删除后台人员的登录日志的id
     */
    @Transactional
    @Override
    public void delBackManageLogin(int id,int isdel) {
        backmanageloginMapper.delBackManageLogin(id,isdel);
    }
}
